import Index from '../views/index/index'   
import Login from '../views/login/login'
import Registry from '../views/registry/registry' 
// 二级路由视图组件
import Home from '../views/index/home/home'  
import Manager from '../views/index/manager/manger'      
import People from '../views/index/people/people'
import Student from '../views/index/student/student'

 const routes=[
     // 重定向
     {
         path:'/',
         redirect:'/index'
     },
     {
        path:'/index',
        component: Index,
        children:[
            {
                path:'/index/home',
                component: Home
            },
            {
                path:'/index/people',
                component: People
            },
            {
                path:'/index/manager',
                component: Manager
            },
            {
                path:'/index/student',
                component:Student
            }
        ]
     },
     {
         path:'/login',
         component: Login
     },
     {
         path:'/registry',
         component:Registry
     }
 ]

 export default routes;